import { alovaInstance, ignoreToken, type RequestBody } from '@/utils'

export default {
  login: (data: RequestBody) => ignoreToken(alovaInstance.Post('/auth/login', data)),
  getUser: () => alovaInstance.Get('/user'),
  refreshToken: () => ignoreToken(alovaInstance.Post('/auth/refreshToken')),
  getTableData: () => alovaInstance.Post('/table/list')
}
